package com.ruoyi.oa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.oa.mapper.OaConfirmLogsMapper;
import com.ruoyi.oa.domain.OaConfirmLogs;
import com.ruoyi.oa.service.IOaConfirmLogsService;

/**
 * 审核日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-31
 */
@Service
public class OaConfirmLogsServiceImpl implements IOaConfirmLogsService 
{
    @Autowired
    private OaConfirmLogsMapper oaConfirmLogsMapper;

    /**
     * 查询审核日志
     * 
     * @param confirmLogUuid 审核日志主键
     * @return 审核日志
     */
    @Override
    public OaConfirmLogs selectOaConfirmLogsByConfirmLogUuid(String confirmLogUuid)
    {
        return oaConfirmLogsMapper.selectOaConfirmLogsByConfirmLogUuid(confirmLogUuid);
    }

    /**
     * 查询审核日志列表
     * 
     * @param oaConfirmLogs 审核日志
     * @return 审核日志
     */
    @Override
    public List<OaConfirmLogs> selectOaConfirmLogsList(OaConfirmLogs oaConfirmLogs)
    {
        return oaConfirmLogsMapper.selectOaConfirmLogsList(oaConfirmLogs);
    }

    /**
     * 新增审核日志
     * 
     * @param oaConfirmLogs 审核日志
     * @return 结果
     */
    @Override
    public int insertOaConfirmLogs(OaConfirmLogs oaConfirmLogs)
    {
        return oaConfirmLogsMapper.insertOaConfirmLogs(oaConfirmLogs);
    }

    /**
     * 修改审核日志
     * 
     * @param oaConfirmLogs 审核日志
     * @return 结果
     */
    @Override
    public int updateOaConfirmLogs(OaConfirmLogs oaConfirmLogs)
    {
        return oaConfirmLogsMapper.updateOaConfirmLogs(oaConfirmLogs);
    }

    /**
     * 批量删除审核日志
     * 
     * @param confirmLogUuids 需要删除的审核日志主键
     * @return 结果
     */
    @Override
    public int deleteOaConfirmLogsByConfirmLogUuids(String[] confirmLogUuids)
    {
        return oaConfirmLogsMapper.deleteOaConfirmLogsByConfirmLogUuids(confirmLogUuids);
    }

    /**
     * 删除审核日志信息
     * 
     * @param confirmLogUuid 审核日志主键
     * @return 结果
     */
    @Override
    public int deleteOaConfirmLogsByConfirmLogUuid(String confirmLogUuid)
    {
        return oaConfirmLogsMapper.deleteOaConfirmLogsByConfirmLogUuid(confirmLogUuid);
    }
}
